package com.ctshk.rpc.insurance.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * <p>
 * 保险产品
 * </p>
 *
 * @author wangcy
 * @since 2021-01-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_insurance_product")
@ApiModel(value="InsuranceProduct对象", description="保险产品")
public class InsuranceProduct extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "所属资源")
    private Long insuranceId;

    @ApiModelProperty(value = "是否推荐")
    private Integer isRecommend;

    @ApiModelProperty(value = "加幅类型0 加数值	1 加百分比（百分比增幅小数部分需向上取整，如1.56取2.00）")
    private Integer adjustType;

    @ApiModelProperty(value = "金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "百分比")
    private BigDecimal percent;

    @ApiModelProperty(value = "产品来源（1 手动录入	2 API对接）")
    private Integer sourceType;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
